import request from "@/utils/request";

// 查询列表
export function listOrderApply(query) {
  return request({
    url: "/api/orderApply/list",
    method: "get",
    params: query,
  });
}

// 修改
export function updateOrderApply(data) {
  return request({
    url: "/api/orderApply/update",
    method: "post",
    data: data,
  });
}
// 审批
export function approveOrderApply(data) {
  return request({
    url: "/api/orderApply/apply",
    method: "post",
    data: data,
  });
}

// 删除
export function delOrderApply(data) {
  return request({
    url: "/api/orderApply/del",
    method: "post",
    data: data,
  });
}



// 下载excel 文件
export function downExcelOrderApply(query) {
  return request({
    url: "/api/orderApply/downExcel",
    method: "get",
    responseType: "blob",
    params: query,
  });
}
